package com.mall.mapper;

import com.mall.pojo.goods;
import com.mall.pojo.subCate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface subCateMapper {
    @Select("select * from subcate")
    List<subCate> findAll();
    @Select("select * from subcate where id=#{id}")
    subCate findById(int id);
    @Select("select * from subcate where parentId=#{parentId}")
    List<subCate> findByParentId(int parentId);
}
